package com.itheima.String;

/**
 * @Author 王加鑫
 * @Date 2021/4/27 11:50
 * @Version 1.0
 * equals方法详解
 */
public class StringTest03 {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = new String("abc");
        String s3 = "ABC";

        System.out.println(s1.equals(s2));
        System.out.println(s1.equalsIgnoreCase(s3));
    }
}
